class Request:
    def __init__(self, environ):
        self.environ = environ

    @property
    def path(self):
        return self.environ.get('PATH_INFO')

    @property
    def method(self):
        return self.environ.get('REQUEST_METHOD')

    @property
    def query_string(self):
        return self.environ.get('QUERY_STRING')

    @property
    def query(self):
        query = {}
        for elem in self.query_string.split('&'):
            key, value = elem.split('=')
            query[key] = value
        return query
